<%@ Page Language="C#" MasterPageFile="~/TreyResearchOnlineEMR.Master" AutoEventWireup="true"
    CodeFile="CreateUser.aspx.cs" Inherits="CreateUser" Title="Trey Research - Create User" %>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContentPlaceHolder" runat="Server">
    <table style="width: 100%;" border="0" cellpadding="0" cellspacing="0" class="ContentPlaceHolderInner">
        <tr>
            <td style="height: 100%; width: 100%;" align="center" valign="middle">
                <div>
                    <table class="PageFont" border="0" cellpadding="0" cellspacing="5">
                        <tr>
                            <td align="right">
                            </td>
                            <td align="right">
                            </td>
                            <td align="left" class="Mandatory">
                            </td>
                        </tr>
                        <tr>
                            <td align="left">
                                <asp:Label ID="LabelProviderPractice" runat="server" Text="Provider Practice"></asp:Label>
                                <span class="Mandatory">*</span></td>
                            <td align="left">
                            </td>
                            <td align="left">
                                <asp:DropDownList ID="DropDownListProviderPractice" runat="server" CssClass="registraionDropdown"
                                    Width="156px" TabIndex="1">
                                </asp:DropDownList>&nbsp;
                                <asp:RequiredFieldValidator ID="RequiredFieldPractice" runat="server" ErrorMessage="Provider Practice is required"
                                    ToolTip="Provider Practice is required" CssClass="PageFont" ControlToValidate="DropDownListProviderPractice"
                                    SetFocusOnError="True" Display="Dynamic"></asp:RequiredFieldValidator></td>
                        </tr>
                        <tr>
                            <td align="left">
                                <asp:Label ID="LabelUserName" runat="server" Text="User Name"></asp:Label><span class="Mandatory">*</span></td>
                            <td align="left">
                            </td>
                            <td align="left">
                                <asp:TextBox ID="TextBoxUsername" runat="server" CssClass="registraionDropdown" Width="150px" MaxLength="64"
                                    TabIndex="2"></asp:TextBox>
                                &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldUserName" runat="server" ErrorMessage="User Name is Required"
                                    ToolTip="User Name is Required" ControlToValidate="TextBoxUsername" CssClass="PageFont"
                                    SetFocusOnError="True" Display="Dynamic"></asp:RequiredFieldValidator></td>
                        </tr>
                        <tr>
                            <td align="left">
                                <asp:Label ID="LabelPassword" runat="server" Text="Password"></asp:Label>
                                <span class="Mandatory">*</span></td>
                            <td align="left">
                            </td>
                            <td align="left">
                                <asp:TextBox ID="TextBoxPassword" runat="server" MaxLength="16" TextMode="Password" CssClass="registraionDropdown"
                                    Width="150px" TabIndex="3"></asp:TextBox>
                                <span class="Mandatory"></span>
                                <asp:RequiredFieldValidator ID="RequiredFieldPassword" runat="server" ErrorMessage="Password is Required"
                                    ToolTip="Password is Required" ControlToValidate="TextBoxPassword" CssClass="PageFont"
                                    SetFocusOnError="True" Display="Dynamic"></asp:RequiredFieldValidator></td>
                        </tr>
                        <tr>
                            <td align="left">
                                <asp:Label ID="LabelConfirmPassword" runat="server" Text="Confirm Password"></asp:Label>
                                <span class="Mandatory">*</span>
                            </td>
                            <td align="left">
                            </td>
                            <td align="left" style="height: 19px">
                                <asp:TextBox ID="TextBoxConfirmPassword" runat="server" TextMode="Password" CssClass="registraionDropdown"
                                    Width="150px" TabIndex="4" MaxLength="16" ></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldConfirmPassword" runat="server" ControlToValidate="TextBoxConfirmPassword"
                                    Display="Dynamic" ErrorMessage="Confirm Password is Required" SetFocusOnError="True"></asp:RequiredFieldValidator><span class="Mandatory"></span>
                                <asp:CompareValidator ID="CompareValidatorConfirmPassword" runat="server" ControlToCompare="TextBoxPassword"
                                    ControlToValidate="TextBoxConfirmPassword" Display="Dynamic" ErrorMessage="Password and ConfirmPassword  does not match"
                                    SetFocusOnError="True"></asp:CompareValidator></td>
                        </tr>
                        <tr>
                            <td align="right">
                            </td>
                            <td align="right" style="width: 10px">
                            </td>
                            <td align="left">
                                <table border="0" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td align="left" class="Mandatory" colspan="2" style="height: 17px">
                                            <asp:Literal ID="LiteralWarning" runat="server" Text="Fields marked with * are mandatory"></asp:Literal></td>
                                    </tr>
                                    <tr>
                                        <td align="left" class="Mandatory" colspan="2" style="height: 10px">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left" style="height: 17px" class="Margin">
                                            <asp:Button ID="ButtonSave" runat="server" CssClass="Button" OnClick="ButtonSave_Click"
                                                TabIndex="6" Text="Create User" ToolTip="Create new user for selected Practice" /></td>
                                        <td align="left" style="height: 17px">
                                            &nbsp;<asp:Button ID="ButtonCancel" runat="server" CssClass="Button" OnClick="ButtonCancel_Click"
                                                TabIndex="6" Text="   Cancel   " CausesValidation="False" ToolTip="Retuen to login page" /></td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                            </td>
                            <td align="right">
                            </td>
                            <td align="left">
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                            </td>
                            <td align="right">
                            </td>
                            <td align="left">
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
        </tr>
    </table>

    <script language="javascript" type="text/javascript">    
    function CheckSpecialCharacter(Chars)
    {
        var str = Chars.split(",");
        for(var i=0;i<str.length;i++)
        {     
         if(String.fromCharCode(event.keyCode) == str[i]) 
         {
           event.returnValue=false;
         }
        }
    }
    </script>

</asp:Content>
